package com.zgm.ch04._3_2;

import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;

import com.zgm.ch04._3_1.LoggingBean;

public class ShutdownHookDemo {
	public static void main(String[] args){
		XmlBeanFactory factory = new XmlBeanFactory(new ClassPathResource("com/zgm/ch04/_3_2/_3_2-context.xml"));
		factory.preInstantiateSingletons();
		LoggingBean lb = (LoggingBean) factory.getBean("loggingBean");
		
		lb.run();
	}
}
